package com.ccrfid.rmc6.entity.business.prison.rollcall;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "prison_rollcall_result_detail")
public class PrisonRollcallResultDetailEntity {
    private Long id;
    private Long rollcallResultId;
    private Long personnelId;
    private String personnelSn;
    private String personnelName;
    private Long cardNumber;
    private Long orgId;
    private String orgName;
    private Integer resultStatus;
    private String remark;
    private Timestamp rollcallTime;

    @Id
    @Column(name = "id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "rollcall_result_id", nullable = false)
    public Long getRollcallResultId() {
        return rollcallResultId;
    }

    public void setRollcallResultId(Long rollcallResultId) {
        this.rollcallResultId = rollcallResultId;
    }

    @Basic
    @Column(name = "personnel_id", nullable = false)
    public Long getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Long personnelId) {
        this.personnelId = personnelId;
    }

    @Basic
    @Column(name = "personnel_sn", length = 45)
    public String getPersonnelSn() {
        return personnelSn;
    }

    public void setPersonnelSn(String personnelSn) {
        this.personnelSn = personnelSn;
    }

    @Basic
    @Column(name = "personnel_name", length = 32, nullable = false)
    public String getPersonnelName() {
        return personnelName;
    }

    public void setPersonnelName(String personnelName) {
        this.personnelName = personnelName;
    }

    @Basic
    @Column(name = "card_number", nullable = true)
    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    @Basic
    @Column(name = "org_id", nullable = true)
    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    @Basic
    @Column(name = "org_name", length = 64)
    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    @Basic
    @Column(name = "result_status", nullable = false)
    public Integer getResultStatus() {
        return resultStatus;
    }

    public void setResultStatus(Integer resultStatus) {
        this.resultStatus = resultStatus;
    }

    @Basic
    @Column(name = "remark", length = 255)
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Basic
    @Column(name = "rollcall_time", nullable = false)
    public Timestamp getRollcallTime() {
        return rollcallTime;
    }

    public void setRollcallTime(Timestamp rollcallTime) {
        this.rollcallTime = rollcallTime;
    }

    @Override
    public String toString() {
        return "PrisonRollcallResultDetailEntity{" +
                "id=" + id +
                ", rollcallResultId=" + rollcallResultId +
                ", personnelId=" + personnelId +
                ", personnelSn='" + personnelSn + '\'' +
                ", personnelName='" + personnelName + '\'' +
                ", cardNumber=" + cardNumber +
                ", resultStatus=" + resultStatus +
                ", remark='" + remark + '\'' +
                ", rollcallTime=" + rollcallTime +
                '}';
    }
}
